package com.rbac.domain.dto.request;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import java.util.List;

@Data
public class RoleCreateRequest {

    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    @NotBlank(message = "角色编码不能为空")
    @Pattern(regexp = "^[A-Z0-9_]{2,50}$", message = "角色编码只能包含大写字母、数字、下划线，长度2-50位")
    private String roleCode;

    private Integer sortOrder = 0;

    private Integer status = 1;

    private String remark;

    private List<Long> permissionIds;
}